#include<iostream.h>

int cmmdc(int a,b)
{while(a!=b)
   {if(a>b)
      a=a-b;
    else
      b=b-a;
    }
 return a;
}

int cmmdc(int n)
{int c,v[100];
 c=cmmdc(v[1],v[2]);
 for(int i=3;i<n;i++)
   c=cmmdc(c,v[i]);
 return c;
}

void main()
{int v[100],i,n,c1;
 cin>>n;
 for(i=0;i<n;i++)
   cin>>v[i];
 c1=cmmdc(n);
 cout<<"C.m.m.d.c. al tuturor elementelor sirului este "<<c1<<"\n";
}	
